How to calculate object Numbers